//
//  PhotoFlowLayout.swift
//  PhotoBrowser
//
//  Created by 游强辉 on 16/4/28.
//  Copyright © 2016年 youqianghui. All rights reserved.
//

import UIKit

class PhotoFlowLayout: UICollectionViewFlowLayout {

    override func prepareLayout() {
        super.prepareLayout()
        
        //设置属性
        itemSize = (collectionView?.bounds.size)!
        minimumInteritemSpacing = 0
        minimumLineSpacing = 0
        scrollDirection = .Horizontal
        
        //设置collectionView的属性
        collectionView?.pagingEnabled = true
        collectionView?.showsHorizontalScrollIndicator = false
        
    }
    
}
